<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..' ,
	'sourceLanguage'=>'zh_cn',
	'timeZone'=>'Asia/Shanghai',
	'name'=>'代码客栈',
    'charset'=>'utf-8',
	// preloading 'log' component
	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.daos.*',
		'application.components.*',
		'zii.widgets.*',
		'ext.captcha.*'
	),

	'modules'=>array(
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'123456',
			// If removed, Gii defaults to localhost only. Edit carefully to taste.
			'ipFilters'=>array('127.0.0.1','192.168.1.126'), 
		),
		'www' => array('class' => 'application.modules.www.WwwModule'),
		'user' =>array('class' => 'application.modules.user.UserModule'),
		
	),
   'defaultController' => 'www/default/index',
	// application components
	'components'=>require(dirname(__FILE__).'/public.php'),
	// using Yii::app()->params['paramName']
	'params'=>require(dirname(__FILE__).'/params.php'),
	'theme'=>'classic',
);